import {
  BoxGeometry,
  Mesh,
  ShaderMaterial,
  PerspectiveCamera,
  Scene,
  WebGLRenderer
} from "three"


class Main  {
 
  onWindowResize: any;
  _camera: PerspectiveCamera;
  _scene: Scene;
  _renderer: WebGLRenderer;
  constructor () {
   
    this._camera = new PerspectiveCamera(70, window.innerWidth / window.innerHeight, 1, 1000)
    this._camera.position.z = 400

    this._scene = new Scene()

    this._renderer = new WebGLRenderer()
    this._renderer.setPixelRatio(window.devicePixelRatio)
    this._renderer.setSize(window.innerWidth, window.innerHeight)
    document.body.appendChild(this._renderer.domElement)


    window.addEventListener('resize', this.onWindowResize.bind(this), false)

    
   

  }
}

export default Main
